﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureDiagMon.Common
{
    public class ExportAttribute : Attribute
    {
        private readonly Type exportedType;

        public Type ExportedType
        {
            get { return exportedType; }
        }

        public bool IsSingleton { get; set; }
        public string Name { get; set; }

        public ExportAttribute()
        {
        }

        public ExportAttribute(Type exportedType)
        {
            this.exportedType = exportedType;
        }

        public ExportAttribute(Type exportedType, string name)
        {
            this.exportedType = exportedType;
            this.Name = name;
        }
    }
}
